import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);


export default new Router({
  routes: [
    { path: '/', redirect: 'home' },

    //行情首頁
    {
      path: '/home',
      name: 'home',
      component: resolve => require(['@/page/home'], resolve)
    },

    //交易界面
    {
      path: '/transaction',
      name: 'transaction',
      component: resolve => require(['@/page/transaction'], resolve)
    },

    //賬戶界面
    {
      path: '/account',
      name: 'account',
      component: resolve => require(['@/page/account'], resolve)
    },

    //登录界面
    {
      path: '/login',
      name: 'login',
      component: resolve => require(['@/page/login'], resolve)
    },

    //注册界面
    {
      path: '/register',
      name: 'register',
      component: resolve => require(['@/page/register'], resolve)
    },

    //重置密码
    {
      path: '/reset',
      name: 'reset',
      component: resolve => require(['@/page/reset_password'], resolve)
    },

    //重置密码2
    {
      path: '/reset2',
      name: 'reset2',
      component: resolve => require(['@/page/reset_password2'], resolve)
    },

    //二次认证
    {
      path:"sv",
      name: 'sv',
      component: resolve => require(['@/page/second_verification'], resolve)
    }
  ]
})
